package cn.itedus.lottery.domain.rule.service.logic.impl;

import cn.itedus.lottery.domain.rule.model.req.DecisionMatterReq;
import cn.itedus.lottery.domain.rule.service.logic.BaseLogic;
import org.springframework.stereotype.Component;

/**
 * @description: 年龄规则
 */
@Component
public class UserAgeFilter extends BaseLogic {
    /**
     * 获取规则比对值，其实就是传入的用户age这些
     * @param decisionMatter 决策物料
     * @return 比对值
     */
    @Override
    public String matterValue(DecisionMatterReq decisionMatter) {
        return decisionMatter.getValMap().get("age").toString();
    }

}
